﻿using System;
using System.Collections.Generic;

namespace Mads.CoreDomain
{
  /// <summary>
  /// Electronic order for a seatsNumber of tickets.
  /// </summary>
  public class Order : VersionedKeyAbstraction
  {
    /// <summary>
    /// User that ordered/bought tickets.
    /// Not required.
    /// </summary>
    public User Buyer { get; private set; }

    /// <summary>
    /// Tickets bought by this order.
    /// </summary>
    public IEnumerable<Ticket> Tickets { get; private set; }

    public Order(User buyer)
      : base()
    {
      Buyer = buyer;
    }
  }
}